package com.explment.lens.controller.user;

import com.explment.lens.entity.SysUserOrgEntity;
import com.explment.lens.service.SysUserOrgService;
import org.springframework.web.bind.annotation.*;
import org.springframework.beans.factory.annotation.Autowired;
import com.explment.lens.utils.result.ResultData;
/**
 * 用户组织机构关联 controller
 */
@RestController
@RequestMapping("/sysUserOrgEntity")
public class SysUserOrgController {
    @Autowired
    private SysUserOrgService sysUserOrgEntityService;

    @GetMapping("/{id}")
    public ResultData getById(@PathVariable String id) {
        return ResultData.success(sysUserOrgEntityService.getById(id));
    }
}